

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Yozeev.BusinessLogic;

namespace Yozeev.EntityMapper.TicketUserEnables
{
    public class TicketUserEnableCfg : IEntityTypeConfiguration<TicketUserEnable>
    {
        public void Configure(EntityTypeBuilder<TicketUserEnable> builder)
        {

            builder.ToTable("TicketUserEnables", YoYoAbpefCoreConsts.SchemaNames.Ticket);

            
			builder.Property(a => a.SaleUserId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			//builder.Property(a => a.SaleUser).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.TicketId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			//builder.Property(a => a.Ticket).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);


        }
    }
}


